package com.windmill.cmd.game;
import java.util.HashMap;
import java.util.Map;

public class BlindGuess implements GuessNumberGame {

    @Override
    public Map<String, String> guess(Integer right, String guess) {
	Map<String,String> result = new HashMap<String,String>();
	if(Integer.parseInt(guess)==right){
	    result.put("result", "1");
	    result.put("message", "恭喜，您猜的数字("+guess+")正确！");
	}else if(Integer.parseInt(guess)>30){
	    result.put("result", "0");
	    result.put("message", "您猜的数字超出范围[0-30]");
	}else{
	    result.put("result", "0");
	    result.put("message", "很遗憾，您猜的数字("+guess+")错了！");
	    
	}
	return result;
    }

}
